#{extends 'main.html' /}
<!--@samar Nassar  this page shows all exercise available on this tutorial-->
#{ifnot exercises}
<p>
There Is No Exercises Yet !! 
</p>
#{/ifnot}


#{list items:exercises, as:'ExerciseList'}

<div>
<ul>
			<li><a href="#">${ExerciseList.ExerciseName} </a> #{if flash.error}
				<p style="color: #FF6600">${flash.error}</p> #{/if}
				<ul>
					<form action="@{Exercises.viewExercise()}"
						method="GET">
						<button   style="color: DarkBlue"  name="id" type="submit" value="${ExerciseList.id}">view model Answer per Question</button>
					</form>

					<form action="@{Exercises.allQuestions()}"
						method="GET">
						<button style="color: DarkBlue" name="id" type="submit" value="${ExerciseList.id}"> view Model Answer at the end</button>
					</form>

				
				</ul></li>

		</ul>
		
		</div>
		#{/list}
